Hypothesis Testing

Batch 1: Categorical Vs Categorical (ISCG and Dependent) - CHISQ

In this first analyses we examine 5 categorical variables agains all categorical ISCG variables using the Chi-Squared Test for Independence. When a “significant relationship” (p<0.05) is found a table for further investigation is produced.

iscg_cols_categorical<-c("IS.REVA_arrival", "IS.REVA_arrival_shelt", "Is.higest_edu", 
  "IS.mhoh", "IS.gender_hoh", "IS.dependency_ratio_threshold", "IS.disab", 
  "IS.disab_coll_water", "IS.no_male_18to59_coll_water", "IS.no_adult_18to59_coll_water")

dependent.var.list<-c("I.prob_coll_water_HH",
  "I.safe_water_sources",
  "I.wat_30min",
  "ic.jrp.drnk_wat_only_classification",
  "I.cop_strat")


#MATCHING CATEGORICAL VS CATEGORICAL
case<-map_to_case(hypothesis.type = "group_difference",
                  dependent.var.type = "categorical", 
                  independent.var.type = "categorical")
results_list<-list()
for (dep_var in dependent.var.list){

  for(iscg_var in iscg_cols_categorical){

    results1<-map_to_result(data=hh,
                            dependent.var=dep_var,
                            independent.var = iscg_var, 
                            case=case, 
                            weighting = wash_weights)
    
    pval<-round(results1$hypothesis.test$result$p.value,3)
    pval_label<-ifelse(pval<0.05, paste0("*", pval),pval)
    results_list[[iscg_var]]<-results1$summary.statistic
    plots1<-ggplot(results1$summary.statistic,
                   aes(x=independent.var.value, 
                       y=numbers, 
                       fill=factor(dependent.var.value),name="")) + 
      geom_bar(position=position_dodge(), stat="identity") +
      scale_fill_brewer(palette="Spectral")+
      geom_errorbar(aes(ymin=min, ymax=max),
                    width=.2,                    
                    position=position_dodge(.9))+
      labs(title= paste0(dep_var, "~",iscg_var," p value = " ,pval_label),
           x=iscg_var,y= "%",
           fill=dep_var)+
      # geom_text(aes(label=numbers), vjust=max(max)) +
      geom_text(aes(y=max(max)+0.2,label=round(numbers,3)),
                # width=.2,                    
                position=position_dodge(.9))+
      theme_economist()
    print(plots1)
    if(pval<0.05){
      print(kable(results1$summary.statistic,
                  caption= paste0("Sig. Relationship Found for ",
                                  paste0(iscg_var,dep_var)," : pval= *", pval)) %>% kable_styling(position = "center"))}
  }
  
}
Sig. Relationship Found for IS.REVA_arrivalI.prob_coll_water_HH : pval= *0.04
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.prob_coll_water_HH IS.REVA_arrival 0 2016 - Aug 2017 0.4444444 NA 0.3296518 0.5592371
I.prob_coll_water_HH IS.REVA_arrival 0 Before 2016 0.5512195 NA 0.5030696 0.5993694
I.prob_coll_water_HH IS.REVA_arrival 0 post Aug 2017 0.5811069 NA 0.5638586 0.5983552
I.prob_coll_water_HH IS.REVA_arrival 1 2016 - Aug 2017 0.5555556 NA 0.4407629 0.6703482
I.prob_coll_water_HH IS.REVA_arrival 1 Before 2016 0.4487805 NA 0.4006306 0.4969304
I.prob_coll_water_HH IS.REVA_arrival 1 post Aug 2017 0.4188931 NA 0.4016448 0.4361414
Sig. Relationship Found for IS.disabI.prob_coll_water_HH : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.prob_coll_water_HH IS.disab 0 0 0.5985983 NA 0.5814481 0.6157485
I.prob_coll_water_HH IS.disab 0 1 0.4229979 NA 0.3791144 0.4668815
I.prob_coll_water_HH IS.disab 1 0 0.4014017 NA 0.3842515 0.4185519
I.prob_coll_water_HH IS.disab 1 1 0.5770021 NA 0.5331185 0.6208856
Sig. Relationship Found for IS.disab_coll_waterI.prob_coll_water_HH : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.prob_coll_water_HH IS.disab_coll_water 0 0 0.5852521 NA 0.5687644 0.6017399
I.prob_coll_water_HH IS.disab_coll_water 0 1 0.3948718 NA 0.3262531 0.4634905
I.prob_coll_water_HH IS.disab_coll_water 1 0 0.4147479 NA 0.3982601 0.4312356
I.prob_coll_water_HH IS.disab_coll_water 1 1 0.6051282 NA 0.5365095 0.6737469
Sig. Relationship Found for IS.REVA_arrivalI.safe_water_sources : pval= *0.04
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.safe_water_sources IS.REVA_arrival 1 2016 - Aug 2017 0.9722222 NA 0.9342581 1.0000000
I.safe_water_sources IS.REVA_arrival 1 Before 2016 0.9902439 NA 0.9807285 0.9997593
I.safe_water_sources IS.REVA_arrival 1 post Aug 2017 0.9945929 NA 0.9920291 0.9971566
I.safe_water_sources IS.REVA_arrival 0 2016 - Aug 2017 0.0277778 NA 0.0000000 0.0657419
I.safe_water_sources IS.REVA_arrival 0 Before 2016 0.0097561 NA 0.0002407 0.0192715
I.safe_water_sources IS.REVA_arrival 0 post Aug 2017 0.0054071 NA 0.0028434 0.0079709
Sig. Relationship Found for IS.REVA_arrivalI.wat_30min : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.wat_30min IS.REVA_arrival Less Than 30 2016 - Aug 2017 0.6944444 NA 0.5880288 0.8008601
I.wat_30min IS.REVA_arrival Less Than 30 Before 2016 0.6146341 NA 0.5675189 0.6617493
I.wat_30min IS.REVA_arrival Less Than 30 post Aug 2017 0.7150127 NA 0.6992317 0.7307938
I.wat_30min IS.REVA_arrival More than 30 2016 - Aug 2017 0.3055556 NA 0.1991399 0.4119712
I.wat_30min IS.REVA_arrival More than 30 Before 2016 0.3853659 NA 0.3382507 0.4324811
I.wat_30min IS.REVA_arrival More than 30 post Aug 2017 0.2849873 NA 0.2692062 0.3007683
Sig. Relationship Found for IS.REVA_arrival_sheltI.wat_30min : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.wat_30min IS.REVA_arrival_shelt Less Than 30 < 2016 0.5865385 NA 0.5318877 0.6411893
I.wat_30min IS.REVA_arrival_shelt Less Than 30 2016 - Aug 2017 0.7058824 NA 0.6090043 0.8027604
I.wat_30min IS.REVA_arrival_shelt Less Than 30 post Aug 2017 0.7144627 NA 0.6988817 0.7300437
I.wat_30min IS.REVA_arrival_shelt More than 30 < 2016 0.4134615 NA 0.3588107 0.4681123
I.wat_30min IS.REVA_arrival_shelt More than 30 2016 - Aug 2017 0.2941176 NA 0.1972396 0.3909957
I.wat_30min IS.REVA_arrival_shelt More than 30 post Aug 2017 0.2855373 NA 0.2699563 0.3011183
Sig. Relationship Found for Is.higest_eduI.wat_30min : pval= *0.015
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.wat_30min Is.higest_edu Less Than 30 Completed Primary or More 0.7080132 NA 0.6871329 0.7288934
I.wat_30min Is.higest_edu Less Than 30 No Education 0.6694915 NA 0.6394802 0.6995029
I.wat_30min Is.higest_edu Less Than 30 Some Primary 0.7302326 NA 0.7005648 0.7599003
I.wat_30min Is.higest_edu More than 30 Completed Primary or More 0.2919868 NA 0.2711066 0.3128671
I.wat_30min Is.higest_edu More than 30 No Education 0.3305085 NA 0.3004971 0.3605198
I.wat_30min Is.higest_edu More than 30 Some Primary 0.2697674 NA 0.2400997 0.2994352
Sig. Relationship Found for IS.mhohI.wat_30min : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.wat_30min IS.mhoh Less Than 30 married 0.7080440 NA 0.6928836 0.7232044
I.wat_30min IS.mhoh Less Than 30 separated_divorced 0.5000000 NA 0.2549707 0.7450293
I.wat_30min IS.mhoh Less Than 30 single 0.7678571 NA 0.6572631 0.8784512
I.wat_30min IS.mhoh Less Than 30 widow(er) 0.5306122 NA 0.4317912 0.6294333
I.wat_30min IS.mhoh More than 30 married 0.2919560 NA 0.2767956 0.3071164
I.wat_30min IS.mhoh More than 30 separated_divorced 0.5000000 NA 0.2549707 0.7450293
I.wat_30min IS.mhoh More than 30 single 0.2321429 NA 0.1215488 0.3427369
I.wat_30min IS.mhoh More than 30 widow(er) 0.4693878 NA 0.3705667 0.5682088
Sig. Relationship Found for IS.gender_hohI.wat_30min : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.wat_30min IS.gender_hoh Less Than 30 female 0.6373626 NA 0.6061222 0.6686031
I.wat_30min IS.gender_hoh Less Than 30 male 0.7253314 NA 0.7085427 0.7421200
I.wat_30min IS.gender_hoh More than 30 female 0.3626374 NA 0.3313969 0.3938778
I.wat_30min IS.gender_hoh More than 30 male 0.2746686 NA 0.2578800 0.2914573
Sig. Relationship Found for IS.dependency_ratio_thresholdI.wat_30min : pval= *0.006
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.wat_30min IS.dependency_ratio_threshold Less Than 30 0 0.7167315 NA 0.6993087 0.7341544
I.wat_30min IS.dependency_ratio_threshold Less Than 30 1 0.6704545 NA 0.6421003 0.6988088
I.wat_30min IS.dependency_ratio_threshold More than 30 0 0.2832685 NA 0.2658456 0.3006913
I.wat_30min IS.dependency_ratio_threshold More than 30 1 0.3295455 NA 0.3011912 0.3578997
Sig. Relationship Found for IS.disabI.wat_30min : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.wat_30min IS.disab Less Than 30 0 0.7193374 NA 0.7036167 0.7350580
I.wat_30min IS.disab Less Than 30 1 0.5995893 NA 0.5560659 0.6431128
I.wat_30min IS.disab More than 30 0 0.2806626 NA 0.2649420 0.2963833
I.wat_30min IS.disab More than 30 1 0.4004107 NA 0.3568872 0.4439341
Sig. Relationship Found for IS.disab_coll_waterI.wat_30min : pval= *0.001
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.wat_30min IS.disab_coll_water Less Than 30 0 0.7091227 NA 0.6939238 0.7243216
I.wat_30min IS.disab_coll_water Less Than 30 1 0.6000000 NA 0.5312304 0.6687696
I.wat_30min IS.disab_coll_water More than 30 0 0.2908773 NA 0.2756784 0.3060762
I.wat_30min IS.disab_coll_water More than 30 1 0.4000000 NA 0.3312304 0.4687696
Sig. Relationship Found for IS.REVA_arrivalic.jrp.drnk_wat_only_classification : pval= *0.001
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
ic.jrp.drnk_wat_only_classification IS.REVA_arrival 3 -15 2016 - Aug 2017 0.4166667 NA 0.3027743 0.5305590
ic.jrp.drnk_wat_only_classification IS.REVA_arrival 3 -15 Before 2016 0.5317073 NA 0.4834002 0.5800144
ic.jrp.drnk_wat_only_classification IS.REVA_arrival 3 -15 post Aug 2017 0.5098601 NA 0.4923836 0.5273365
ic.jrp.drnk_wat_only_classification IS.REVA_arrival < 3 2016 - Aug 2017 0.3055556 NA 0.1991399 0.4119712
ic.jrp.drnk_wat_only_classification IS.REVA_arrival < 3 Before 2016 0.3121951 NA 0.2673349 0.3570554
ic.jrp.drnk_wat_only_classification IS.REVA_arrival < 3 post Aug 2017 0.2671756 NA 0.2517065 0.2826447
ic.jrp.drnk_wat_only_classification IS.REVA_arrival >20 2016 - Aug 2017 0.2500000 NA 0.1499672 0.3500328
ic.jrp.drnk_wat_only_classification IS.REVA_arrival >20 Before 2016 0.0902439 NA 0.0625051 0.1179827
ic.jrp.drnk_wat_only_classification IS.REVA_arrival >20 post Aug 2017 0.1323155 NA 0.1204700 0.1441610
ic.jrp.drnk_wat_only_classification IS.REVA_arrival 15-20 2016 - Aug 2017 0.0277778 NA 0.0000000 0.0657419
ic.jrp.drnk_wat_only_classification IS.REVA_arrival 15-20 Before 2016 0.0658537 NA 0.0418425 0.0898648
ic.jrp.drnk_wat_only_classification IS.REVA_arrival 15-20 post Aug 2017 0.0906489 NA 0.0806116 0.1006861
Sig. Relationship Found for Is.higest_eduic.jrp.drnk_wat_only_classification : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
ic.jrp.drnk_wat_only_classification Is.higest_edu 3 -15 Completed Primary or More 0.5021954 NA 0.4792339 0.5251569
ic.jrp.drnk_wat_only_classification Is.higest_edu 3 -15 No Education 0.4565678 NA 0.4247883 0.4883473
ic.jrp.drnk_wat_only_classification Is.higest_edu 3 -15 Some Primary 0.5872093 NA 0.5542999 0.6201187
ic.jrp.drnk_wat_only_classification Is.higest_edu < 3 Completed Primary or More 0.2711306 NA 0.2507157 0.2915456
ic.jrp.drnk_wat_only_classification Is.higest_edu < 3 No Education 0.3177966 NA 0.2880900 0.3475033
ic.jrp.drnk_wat_only_classification Is.higest_edu < 3 Some Primary 0.2279070 NA 0.1998673 0.2559466
ic.jrp.drnk_wat_only_classification Is.higest_edu >20 Completed Primary or More 0.1421515 NA 0.1261148 0.1581882
ic.jrp.drnk_wat_only_classification Is.higest_edu >20 No Education 0.1271186 NA 0.1058664 0.1483709
ic.jrp.drnk_wat_only_classification Is.higest_edu >20 Some Primary 0.1069767 NA 0.0863165 0.1276370
ic.jrp.drnk_wat_only_classification Is.higest_edu 15-20 Completed Primary or More 0.0845225 NA 0.0717480 0.0972970
ic.jrp.drnk_wat_only_classification Is.higest_edu 15-20 No Education 0.0985169 NA 0.0795037 0.1175302
ic.jrp.drnk_wat_only_classification Is.higest_edu 15-20 Some Primary 0.0779070 NA 0.0599913 0.0958227
Sig. Relationship Found for IS.mhohic.jrp.drnk_wat_only_classification : pval= *0.024
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
ic.jrp.drnk_wat_only_classification IS.mhoh 3 -15 married 0.5121528 NA 0.4954856 0.5288200
ic.jrp.drnk_wat_only_classification IS.mhoh 3 -15 separated_divorced 0.6250000 NA 0.3877514 0.8622486
ic.jrp.drnk_wat_only_classification IS.mhoh 3 -15 single 0.5000000 NA 0.3690263 0.6309737
ic.jrp.drnk_wat_only_classification IS.mhoh 3 -15 widow(er) 0.4387755 NA 0.3405138 0.5370372
ic.jrp.drnk_wat_only_classification IS.mhoh < 3 married 0.2690972 NA 0.2543094 0.2838851
ic.jrp.drnk_wat_only_classification IS.mhoh < 3 separated_divorced 0.3125000 NA 0.0853518 0.5396482
ic.jrp.drnk_wat_only_classification IS.mhoh < 3 single 0.2321429 NA 0.1215488 0.3427369
ic.jrp.drnk_wat_only_classification IS.mhoh < 3 widow(er) 0.4285714 NA 0.3305801 0.5265627
ic.jrp.drnk_wat_only_classification IS.mhoh >20 married 0.1313657 NA 0.1201021 0.1426294
ic.jrp.drnk_wat_only_classification IS.mhoh >20 separated_divorced 0.0000000 NA 0.0000000 0.0000000
ic.jrp.drnk_wat_only_classification IS.mhoh >20 single 0.1250000 NA 0.0383691 0.2116309
ic.jrp.drnk_wat_only_classification IS.mhoh >20 widow(er) 0.1020408 NA 0.0421017 0.1619799
ic.jrp.drnk_wat_only_classification IS.mhoh 15-20 married 0.0873843 NA 0.0779679 0.0968006
ic.jrp.drnk_wat_only_classification IS.mhoh 15-20 separated_divorced 0.0625000 NA 0.0000000 0.1811243
ic.jrp.drnk_wat_only_classification IS.mhoh 15-20 single 0.1428571 NA 0.0511947 0.2345196
ic.jrp.drnk_wat_only_classification IS.mhoh 15-20 widow(er) 0.0306122 NA 0.0000000 0.0647230
Sig. Relationship Found for IS.dependency_ratio_thresholdic.jrp.drnk_wat_only_classification : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
ic.jrp.drnk_wat_only_classification IS.dependency_ratio_threshold 3 -15 0 0.4848249 NA 0.4655003 0.5041495
ic.jrp.drnk_wat_only_classification IS.dependency_ratio_threshold 3 -15 1 0.5729167 NA 0.5430781 0.6027552
ic.jrp.drnk_wat_only_classification IS.dependency_ratio_threshold < 3 0 0.2723735 NA 0.2551597 0.2895874
ic.jrp.drnk_wat_only_classification IS.dependency_ratio_threshold < 3 1 0.2746212 NA 0.2476981 0.3015443
ic.jrp.drnk_wat_only_classification IS.dependency_ratio_threshold >20 0 0.1459144 NA 0.1322641 0.1595647
ic.jrp.drnk_wat_only_classification IS.dependency_ratio_threshold >20 1 0.0909091 NA 0.0735677 0.1082505
ic.jrp.drnk_wat_only_classification IS.dependency_ratio_threshold 15-20 0 0.0968872 NA 0.0854493 0.1083250
ic.jrp.drnk_wat_only_classification IS.dependency_ratio_threshold 15-20 1 0.0615530 NA 0.0470551 0.0760509
Sig. Relationship Found for IS.disab_coll_wateric.jrp.drnk_wat_only_classification : pval= *0.028
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
ic.jrp.drnk_wat_only_classification IS.disab_coll_water 3 -15 0 0.5059749 NA 0.4892434 0.5227065
ic.jrp.drnk_wat_only_classification IS.disab_coll_water 3 -15 1 0.5897436 NA 0.5206958 0.6587914
ic.jrp.drnk_wat_only_classification IS.disab_coll_water < 3 0 0.2780530 NA 0.2630592 0.2930469
ic.jrp.drnk_wat_only_classification IS.disab_coll_water < 3 1 0.1846154 NA 0.1301518 0.2390789
ic.jrp.drnk_wat_only_classification IS.disab_coll_water >20 0 0.1302827 NA 0.1190177 0.1415477
ic.jrp.drnk_wat_only_classification IS.disab_coll_water >20 1 0.1230769 NA 0.0769601 0.1691938
ic.jrp.drnk_wat_only_classification IS.disab_coll_water 15-20 0 0.0856893 NA 0.0763221 0.0950565
ic.jrp.drnk_wat_only_classification IS.disab_coll_water 15-20 1 0.1025641 NA 0.0599758 0.1451524
Sig. Relationship Found for IS.no_male_18to59_coll_wateric.jrp.drnk_wat_only_classification : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
ic.jrp.drnk_wat_only_classification IS.no_male_18to59_coll_water 3 -15 0 0.5148402 NA 0.4914346 0.5382458
ic.jrp.drnk_wat_only_classification IS.no_male_18to59_coll_water 3 -15 1 0.5064034 NA 0.4837644 0.5290424
ic.jrp.drnk_wat_only_classification IS.no_male_18to59_coll_water < 3 0 0.2391553 NA 0.2191783 0.2591322
ic.jrp.drnk_wat_only_classification IS.no_male_18to59_coll_water < 3 1 0.3046958 NA 0.2838536 0.3255381
ic.jrp.drnk_wat_only_classification IS.no_male_18to59_coll_water >20 0 0.1398402 NA 0.1235979 0.1560824
ic.jrp.drnk_wat_only_classification IS.no_male_18to59_coll_water >20 1 0.1205977 NA 0.1058512 0.1353441
ic.jrp.drnk_wat_only_classification IS.no_male_18to59_coll_water 15-20 0 0.1061644 NA 0.0917379 0.1205908
ic.jrp.drnk_wat_only_classification IS.no_male_18to59_coll_water 15-20 1 0.0683031 NA 0.0568801 0.0797261
Sig. Relationship Found for IS.no_adult_18to59_coll_wateric.jrp.drnk_wat_only_classification : pval= *0.004
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
ic.jrp.drnk_wat_only_classification IS.no_adult_18to59_coll_water 3 -15 0 0.5140908 NA 0.4972165 0.5309651
ic.jrp.drnk_wat_only_classification IS.no_adult_18to59_coll_water 3 -15 1 0.4627451 NA 0.4015384 0.5239518
ic.jrp.drnk_wat_only_classification IS.no_adult_18to59_coll_water < 3 0 0.2657965 NA 0.2508819 0.2807111
ic.jrp.drnk_wat_only_classification IS.no_adult_18to59_coll_water < 3 1 0.3686275 NA 0.3094066 0.4278483
ic.jrp.drnk_wat_only_classification IS.no_adult_18to59_coll_water >20 0 0.1326016 NA 0.1211514 0.1440518
ic.jrp.drnk_wat_only_classification IS.no_adult_18to59_coll_water >20 1 0.0941176 NA 0.0582742 0.1299611
ic.jrp.drnk_wat_only_classification IS.no_adult_18to59_coll_water 15-20 0 0.0875111 NA 0.0779706 0.0970517
ic.jrp.drnk_wat_only_classification IS.no_adult_18to59_coll_water 15-20 1 0.0745098 NA 0.0422746 0.1067450
Sig. Relationship Found for IS.REVA_arrivalI.cop_strat : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.cop_strat IS.REVA_arrival 0 2016 - Aug 2017 0.9444444 NA 0.8915276 0.9973613
I.cop_strat IS.REVA_arrival 0 Before 2016 0.8560976 NA 0.8221185 0.8900767
I.cop_strat IS.REVA_arrival 0 post Aug 2017 0.9465649 NA 0.9387025 0.9544273
I.cop_strat IS.REVA_arrival 1 2016 - Aug 2017 0.0555556 NA 0.0026387 0.1084724
I.cop_strat IS.REVA_arrival 1 Before 2016 0.1439024 NA 0.1099233 0.1778815
I.cop_strat IS.REVA_arrival 1 post Aug 2017 0.0534351 NA 0.0455727 0.0612975
Sig. Relationship Found for IS.REVA_arrival_sheltI.cop_strat : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.cop_strat IS.REVA_arrival_shelt 0 < 2016 0.8493590 NA 0.8096629 0.8890551
I.cop_strat IS.REVA_arrival_shelt 0 2016 - Aug 2017 0.9529412 NA 0.9079163 0.9979660
I.cop_strat IS.REVA_arrival_shelt 0 post Aug 2017 0.9442552 NA 0.9363407 0.9521696
I.cop_strat IS.REVA_arrival_shelt 1 < 2016 0.1506410 NA 0.1109449 0.1903371
I.cop_strat IS.REVA_arrival_shelt 1 2016 - Aug 2017 0.0470588 NA 0.0020340 0.0920837
I.cop_strat IS.REVA_arrival_shelt 1 post Aug 2017 0.0557448 NA 0.0478304 0.0636593
Sig. Relationship Found for IS.disabI.cop_strat : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.cop_strat IS.disab 0 0 0.9455241 NA 0.9375835 0.9534646
I.cop_strat IS.disab 0 1 0.8767967 NA 0.8476020 0.9059914
I.cop_strat IS.disab 1 0 0.0544759 NA 0.0465354 0.0624165
I.cop_strat IS.disab 1 1 0.1232033 NA 0.0940086 0.1523980
Sig. Relationship Found for IS.disab_coll_waterI.cop_strat : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.cop_strat IS.disab_coll_water 0 0 0.9402507 NA 0.9323186 0.9481827
I.cop_strat IS.disab_coll_water 0 1 0.8666667 NA 0.8189482 0.9143851
I.cop_strat IS.disab_coll_water 1 0 0.0597493 NA 0.0518173 0.0676814
I.cop_strat IS.disab_coll_water 1 1 0.1333333 NA 0.0856149 0.1810518

Batch 2: Categorical Vs Categorical (ISCG and Dependent) - CHISQ

instuctions: All of the below tested as follows: Relationship test for all ISCG indicators Relationship test for HHs with at least 1 PWD

Relationship test for HHs where: at least 1 PWD collects water / no males 18-59 collect water / no adults 18-59 collect wate

dependent.var.list<-c( "I.aquatab_pursach", 
   "I.indi_def_prob_yes",
   "I.indi_bath_prob_all_INDIVHH",
   "menst_chell",
   "I.menst_access_satisf",
   "I.hnd_sp",
   "hyg_train",
   "I.consulted_account_latrine")

length(dependent.var.list)*length(iscg_cols_categorical)

[1] 80

results_list<-list()
for (dep_var in dependent.var.list){

  for(iscg_var in iscg_cols_categorical){

    results1<-map_to_result(data=hh,
                            dependent.var=dep_var,
                            independent.var = iscg_var, 
                            case=case, 
                            weighting = wash_weights)
    
    pval<-round(results1$hypothesis.test$result$p.value,3)
    pval_label<-ifelse(pval<0.05, paste0("*", pval),pval)
    results_list[[iscg_var]]<-results1$summary.statistic
    plots1<-ggplot(results1$summary.statistic,
                   aes(x=independent.var.value, 
                       y=numbers, 
                       fill=factor(dependent.var.value),name="")) + 
      geom_bar(position=position_dodge(), stat="identity") +
      scale_fill_brewer(palette="Spectral")+
      geom_errorbar(aes(ymin=min, ymax=max),
                    width=.2,                    
                    position=position_dodge(.9))+
      labs(title= paste0(dep_var, "~",iscg_var," p value = " ,pval_label),
           x=iscg_var,y= "%",
           fill=dep_var)+
      # geom_text(aes(label=numbers), vjust=max(max)) +
      geom_text(aes(y=max(max)+0.2,label=round(numbers,3)),
                # width=.2,                    
                position=position_dodge(.9))+
      theme_economist()
    print(plots1)
    if(pval<0.05){
      print(kable(results1$summary.statistic,
                  caption= paste0("Sig. Relationship Found for ",
                                  paste0(iscg_var,dep_var)," : pval= *", pval)) %>% kable_styling(position = "center"))}
  }
  
}
Sig. Relationship Found for IS.REVA_arrivalI.aquatab_pursach : pval= *0.009
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.aquatab_pursach IS.REVA_arrival No Aqua or PUR Sach 2016 - Aug 2017 0.7361111 NA 0.6342932 0.8379290
I.aquatab_pursach IS.REVA_arrival No Aqua or PUR Sach Before 2016 0.8390244 NA 0.8034462 0.8746025
I.aquatab_pursach IS.REVA_arrival No Aqua or PUR Sach post Aug 2017 0.7754453 NA 0.7608570 0.7900335
I.aquatab_pursach IS.REVA_arrival Aqua or PUR Sach 2016 - Aug 2017 0.2638889 NA 0.1620710 0.3657068
I.aquatab_pursach IS.REVA_arrival Aqua or PUR Sach Before 2016 0.1609756 NA 0.1253975 0.1965538
I.aquatab_pursach IS.REVA_arrival Aqua or PUR Sach post Aug 2017 0.2245547 NA 0.2099665 0.2391430
Sig. Relationship Found for IS.REVA_arrival_sheltI.aquatab_pursach : pval= *0.004
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.aquatab_pursach IS.REVA_arrival_shelt No Aqua or PUR Sach < 2016 0.8493590 NA 0.8096629 0.8890551
I.aquatab_pursach IS.REVA_arrival_shelt No Aqua or PUR Sach 2016 - Aug 2017 0.7176471 NA 0.6219386 0.8133555
I.aquatab_pursach IS.REVA_arrival_shelt No Aqua or PUR Sach post Aug 2017 0.7770207 NA 0.7626618 0.7913797
I.aquatab_pursach IS.REVA_arrival_shelt Aqua or PUR Sach < 2016 0.1506410 NA 0.1109449 0.1903371
I.aquatab_pursach IS.REVA_arrival_shelt Aqua or PUR Sach 2016 - Aug 2017 0.2823529 NA 0.1866445 0.3780614
I.aquatab_pursach IS.REVA_arrival_shelt Aqua or PUR Sach post Aug 2017 0.2229793 NA 0.2086203 0.2373382
Sig. Relationship Found for IS.gender_hohI.aquatab_pursach : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.aquatab_pursach IS.gender_hoh No Aqua or PUR Sach female 0.6989011 NA 0.6690919 0.7287103
I.aquatab_pursach IS.gender_hoh No Aqua or PUR Sach male 0.8096465 NA 0.7948803 0.8244128
I.aquatab_pursach IS.gender_hoh Aqua or PUR Sach female 0.3010989 NA 0.2712897 0.3309081
I.aquatab_pursach IS.gender_hoh Aqua or PUR Sach male 0.1903535 NA 0.1755872 0.2051197
Sig. Relationship Found for IS.disabI.aquatab_pursach : pval= *0.042
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.aquatab_pursach IS.disab No Aqua or PUR Sach 0 0.7763619 NA 0.7617832 0.7909405
I.aquatab_pursach IS.disab No Aqua or PUR Sach 1 0.8172485 NA 0.7829203 0.8515767
I.aquatab_pursach IS.disab Aqua or PUR Sach 0 0.2236381 NA 0.2090595 0.2382168
I.aquatab_pursach IS.disab Aqua or PUR Sach 1 0.1827515 NA 0.1484233 0.2170797
Sig. Relationship Found for IS.no_male_18to59_coll_waterI.aquatab_pursach : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.aquatab_pursach IS.no_male_18to59_coll_water No Aqua or PUR Sach 0 0.8167808 NA 0.7986641 0.8348975
I.aquatab_pursach IS.no_male_18to59_coll_water No Aqua or PUR Sach 1 0.7491996 NA 0.7295711 0.7688280
I.aquatab_pursach IS.no_male_18to59_coll_water Aqua or PUR Sach 0 0.1832192 NA 0.1651025 0.2013359
I.aquatab_pursach IS.no_male_18to59_coll_water Aqua or PUR Sach 1 0.2508004 NA 0.2311720 0.2704289
Sig. Relationship Found for IS.disabI.indi_def_prob_yes : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.indi_def_prob_yes IS.disab no_latrine_access_prob 0 0.7069130 NA 0.6909875 0.7228385
I.indi_def_prob_yes IS.disab no_latrine_access_prob 1 0.5400411 NA 0.4957704 0.5843118
I.indi_def_prob_yes IS.disab latrine_access_prob 0 0.2930870 NA 0.2771615 0.3090125
I.indi_def_prob_yes IS.disab latrine_access_prob 1 0.4599589 NA 0.4156882 0.5042296
Sig. Relationship Found for IS.disab_coll_waterI.indi_def_prob_yes : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.indi_def_prob_yes IS.disab_coll_water no_latrine_access_prob 0 0.6910522 NA 0.6755891 0.7065152
I.indi_def_prob_yes IS.disab_coll_water no_latrine_access_prob 1 0.5692308 NA 0.4997192 0.6387424
I.indi_def_prob_yes IS.disab_coll_water latrine_access_prob 0 0.3089478 NA 0.2934848 0.3244109
I.indi_def_prob_yes IS.disab_coll_water latrine_access_prob 1 0.4307692 NA 0.3612576 0.5002808
Sig. Relationship Found for IS.no_male_18to59_coll_waterI.indi_def_prob_yes : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.indi_def_prob_yes IS.no_male_18to59_coll_water no_latrine_access_prob 0 0.7208904 NA 0.6998835 0.7418974
I.indi_def_prob_yes IS.no_male_18to59_coll_water no_latrine_access_prob 1 0.6504803 NA 0.6288891 0.6720714
I.indi_def_prob_yes IS.no_male_18to59_coll_water latrine_access_prob 0 0.2791096 NA 0.2581026 0.3001165
I.indi_def_prob_yes IS.no_male_18to59_coll_water latrine_access_prob 1 0.3495197 NA 0.3279286 0.3711109
Sig. Relationship Found for IS.no_adult_18to59_coll_waterI.indi_def_prob_yes : pval= *0.001
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.indi_def_prob_yes IS.no_adult_18to59_coll_water no_latrine_access_prob 0 0.6914862 NA 0.6758922 0.7070802
I.indi_def_prob_yes IS.no_adult_18to59_coll_water no_latrine_access_prob 1 0.5921569 NA 0.5318311 0.6524826
I.indi_def_prob_yes IS.no_adult_18to59_coll_water latrine_access_prob 0 0.3085138 NA 0.2929198 0.3241078
I.indi_def_prob_yes IS.no_adult_18to59_coll_water latrine_access_prob 1 0.4078431 NA 0.3475174 0.4681689
Sig. Relationship Found for IS.REVA_arrivalI.indi_bath_prob_all_INDIVHH : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.indi_bath_prob_all_INDIVHH IS.REVA_arrival 0 2016 - Aug 2017 0.6805556 NA 0.5728418 0.7882693
I.indi_bath_prob_all_INDIVHH IS.REVA_arrival 0 Before 2016 0.8634146 NA 0.8301695 0.8966597
I.indi_bath_prob_all_INDIVHH IS.REVA_arrival 0 post Aug 2017 0.8819975 NA 0.8707191 0.8932758
I.indi_bath_prob_all_INDIVHH IS.REVA_arrival 1 2016 - Aug 2017 0.3194444 NA 0.2117307 0.4271582
I.indi_bath_prob_all_INDIVHH IS.REVA_arrival 1 Before 2016 0.1365854 NA 0.1033403 0.1698305
I.indi_bath_prob_all_INDIVHH IS.REVA_arrival 1 post Aug 2017 0.1180025 NA 0.1067242 0.1292809
Sig. Relationship Found for IS.disabI.indi_bath_prob_all_INDIVHH : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.indi_bath_prob_all_INDIVHH IS.disab 0 0 0.8878624 NA 0.8768226 0.8989022
I.indi_bath_prob_all_INDIVHH IS.disab 0 1 0.7987680 NA 0.7631555 0.8343805
I.indi_bath_prob_all_INDIVHH IS.disab 1 0 0.1121376 NA 0.1010978 0.1231774
I.indi_bath_prob_all_INDIVHH IS.disab 1 1 0.2012320 NA 0.1656195 0.2368445
Sig. Relationship Found for IS.disab_coll_waterI.indi_bath_prob_all_INDIVHH : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.indi_bath_prob_all_INDIVHH IS.disab_coll_water 0 0 0.8805013 NA 0.8696460 0.8913567
I.indi_bath_prob_all_INDIVHH IS.disab_coll_water 0 1 0.7948718 NA 0.7381889 0.8515547
I.indi_bath_prob_all_INDIVHH IS.disab_coll_water 1 0 0.1194987 NA 0.1086433 0.1303540
I.indi_bath_prob_all_INDIVHH IS.disab_coll_water 1 1 0.2051282 NA 0.1484453 0.2618111
Sig. Relationship Found for IS.mhohmenst_chell : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
menst_chell IS.mhoh no married 0.8825088 NA 0.8637429 0.9012747
menst_chell IS.mhoh no separated_divorced 0.3333333 NA 0.0665042 0.6001625
menst_chell IS.mhoh no single 0.9166667 NA 0.7602242 1.0000000
menst_chell IS.mhoh no widow(er) 0.7567568 NA 0.6184549 0.8950586
menst_chell IS.mhoh yes married 0.1174912 NA 0.0987253 0.1362571
menst_chell IS.mhoh yes separated_divorced 0.6666667 NA 0.3998375 0.9334958
menst_chell IS.mhoh yes single 0.0833333 NA 0.0000000 0.2397758
menst_chell IS.mhoh yes widow(er) 0.2432432 NA 0.1049414 0.3815451
Sig. Relationship Found for IS.mhohI.menst_access_satisf : pval= *0.003
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.menst_access_satisf IS.mhoh Not Satisfied married 0.6921296 NA 0.6767375 0.7075218
I.menst_access_satisf IS.mhoh Not Satisfied separated_divorced 0.3750000 NA 0.1377514 0.6122486
I.menst_access_satisf IS.mhoh Not Satisfied single 0.8392857 NA 0.7430810 0.9354904
I.menst_access_satisf IS.mhoh Not Satisfied widow(er) 0.6530612 NA 0.5588075 0.7473149
I.menst_access_satisf IS.mhoh Satisfied married 0.3078704 NA 0.2924782 0.3232625
I.menst_access_satisf IS.mhoh Satisfied separated_divorced 0.6250000 NA 0.3877514 0.8622486
I.menst_access_satisf IS.mhoh Satisfied single 0.1607143 NA 0.0645096 0.2569190
I.menst_access_satisf IS.mhoh Satisfied widow(er) 0.3469388 NA 0.2526851 0.4411925
Sig. Relationship Found for IS.gender_hohI.menst_access_satisf : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.menst_access_satisf IS.gender_hoh Not Satisfied female 0.5076923 NA 0.4752056 0.5401790
I.menst_access_satisf IS.gender_hoh Not Satisfied male 0.7536819 NA 0.7374755 0.7698882
I.menst_access_satisf IS.gender_hoh Satisfied female 0.4923077 NA 0.4598210 0.5247944
I.menst_access_satisf IS.gender_hoh Satisfied male 0.2463181 NA 0.2301118 0.2625245
Sig. Relationship Found for IS.dependency_ratio_thresholdI.menst_access_satisf : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.menst_access_satisf IS.dependency_ratio_threshold Not Satisfied 0 0.7190661 NA 0.7016870 0.7364453
I.menst_access_satisf IS.dependency_ratio_threshold Not Satisfied 1 0.6259470 NA 0.5967585 0.6551354
I.menst_access_satisf IS.dependency_ratio_threshold Satisfied 0 0.2809339 NA 0.2635547 0.2983130
I.menst_access_satisf IS.dependency_ratio_threshold Satisfied 1 0.3740530 NA 0.3448646 0.4032415
Sig. Relationship Found for IS.disabI.menst_access_satisf : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.menst_access_satisf IS.disab Not Satisfied 0 0.6741000 NA 0.6577011 0.6904990
I.menst_access_satisf IS.disab Not Satisfied 1 0.8069815 NA 0.7719245 0.8420385
I.menst_access_satisf IS.disab Satisfied 0 0.3259000 NA 0.3095010 0.3422989
I.menst_access_satisf IS.disab Satisfied 1 0.1930185 NA 0.1579615 0.2280755
Sig. Relationship Found for IS.disab_coll_waterI.menst_access_satisf : pval= *0.007
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.menst_access_satisf IS.disab_coll_water Not Satisfied 0 0.6869717 NA 0.6714529 0.7024906
I.menst_access_satisf IS.disab_coll_water Not Satisfied 1 0.7794872 NA 0.7212886 0.8376857
I.menst_access_satisf IS.disab_coll_water Satisfied 0 0.3130283 NA 0.2975094 0.3285471
I.menst_access_satisf IS.disab_coll_water Satisfied 1 0.2205128 NA 0.1623143 0.2787114
Sig. Relationship Found for IS.no_male_18to59_coll_waterI.menst_access_satisf : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.menst_access_satisf IS.no_male_18to59_coll_water Not Satisfied 0 0.7802511 NA 0.7608592 0.7996431
I.menst_access_satisf IS.no_male_18to59_coll_water Not Satisfied 1 0.6093917 NA 0.5872993 0.6314840
I.menst_access_satisf IS.no_male_18to59_coll_water Satisfied 0 0.2197489 NA 0.2003569 0.2391408
I.menst_access_satisf IS.no_male_18to59_coll_water Satisfied 1 0.3906083 NA 0.3685160 0.4127007
Sig. Relationship Found for IS.no_adult_18to59_coll_waterI.menst_access_satisf : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.menst_access_satisf IS.no_adult_18to59_coll_water Not Satisfied 0 0.6822901 NA 0.6665710 0.6980093
I.menst_access_satisf IS.no_adult_18to59_coll_water Not Satisfied 1 0.8196078 NA 0.7724070 0.8668087
I.menst_access_satisf IS.no_adult_18to59_coll_water Satisfied 0 0.3177099 NA 0.3019907 0.3334290
I.menst_access_satisf IS.no_adult_18to59_coll_water Satisfied 1 0.1803922 NA 0.1331913 0.2275930
Sig. Relationship Found for IS.REVA_arrivalI.hnd_sp : pval= *0.042
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.hnd_sp IS.REVA_arrival Hand Soap Seen 2016 - Aug 2017 0.8055556 NA 0.7141259 0.8969852
I.hnd_sp IS.REVA_arrival Hand Soap Seen Before 2016 0.9048780 NA 0.8764759 0.9332802
I.hnd_sp IS.REVA_arrival Hand Soap Seen post Aug 2017 0.8772265 NA 0.8657535 0.8886994
I.hnd_sp IS.REVA_arrival No Hand Soap Seen 2016 - Aug 2017 0.1944444 NA 0.1030148 0.2858741
I.hnd_sp IS.REVA_arrival No Hand Soap Seen Before 2016 0.0951220 NA 0.0667198 0.1235241
I.hnd_sp IS.REVA_arrival No Hand Soap Seen post Aug 2017 0.1227735 NA 0.1113006 0.1342465
Sig. Relationship Found for Is.higest_eduI.hnd_sp : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.hnd_sp Is.higest_edu Hand Soap Seen Completed Primary or More 0.9023052 NA 0.8886704 0.9159399
I.hnd_sp Is.higest_edu Hand Soap Seen No Education 0.8527542 NA 0.8301466 0.8753619
I.hnd_sp Is.higest_edu Hand Soap Seen Some Primary 0.8581395 NA 0.8348174 0.8814617
I.hnd_sp Is.higest_edu No Hand Soap Seen Completed Primary or More 0.0976948 NA 0.0840601 0.1113296
I.hnd_sp Is.higest_edu No Hand Soap Seen No Education 0.1472458 NA 0.1246381 0.1698534
I.hnd_sp Is.higest_edu No Hand Soap Seen Some Primary 0.1418605 NA 0.1185383 0.1651826
Sig. Relationship Found for IS.disabI.hnd_sp : pval= *0
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.hnd_sp IS.disab Hand Soap Seen 0 0.8865881 NA 0.8754937 0.8976825
I.hnd_sp IS.disab Hand Soap Seen 1 0.8295688 NA 0.7961690 0.8629686
I.hnd_sp IS.disab No Hand Soap Seen 0 0.1134119 NA 0.1023175 0.1245063
I.hnd_sp IS.disab No Hand Soap Seen 1 0.1704312 NA 0.1370314 0.2038310
Sig. Relationship Found for IS.no_adult_18to59_coll_waterI.hnd_sp : pval= *0.009
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.hnd_sp IS.no_adult_18to59_coll_water Hand Soap Seen 0 0.8828241 NA 0.8719652 0.8936830
I.hnd_sp IS.no_adult_18to59_coll_water Hand Soap Seen 1 0.8274510 NA 0.7810673 0.8738347
I.hnd_sp IS.no_adult_18to59_coll_water No Hand Soap Seen 0 0.1171759 NA 0.1063170 0.1280348
I.hnd_sp IS.no_adult_18to59_coll_water No Hand Soap Seen 1 0.1725490 NA 0.1261653 0.2189327
Sig. Relationship Found for Is.higest_eduhyg_train : pval= *0.033
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
hyg_train Is.higest_edu no Completed Primary or More 0.5954995 NA 0.5729605 0.6180384
hyg_train Is.higest_edu no No Education 0.6504237 NA 0.6200015 0.6808460
hyg_train Is.higest_edu no Some Primary 0.5988372 NA 0.5660750 0.6315994
hyg_train Is.higest_edu yes Completed Primary or More 0.4034029 NA 0.3808738 0.4259320
hyg_train Is.higest_edu yes No Education 0.3495763 NA 0.3191540 0.3799985
hyg_train Is.higest_edu yes Some Primary 0.3988372 NA 0.3661067 0.4315677
hyg_train Is.higest_edu dntknow Completed Primary or More 0.0010977 NA 0.0000000 0.0026184
hyg_train Is.higest_edu dntknow No Education 0.0000000 NA 0.0000000 0.0000000
hyg_train Is.higest_edu dntknow Some Primary 0.0023256 NA 0.0000000 0.0055453
Sig. Relationship Found for IS.REVA_arrival_sheltI.consulted_account_latrine : pval= *0.001
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.consulted_account_latrine IS.REVA_arrival_shelt 0 < 2016 0.9294872 NA 0.9010762 0.9578982
I.consulted_account_latrine IS.REVA_arrival_shelt 0 2016 - Aug 2017 0.7882353 NA 0.7013686 0.8751020
I.consulted_account_latrine IS.REVA_arrival_shelt 0 post Aug 2017 0.8739548 NA 0.8625054 0.8854042
I.consulted_account_latrine IS.REVA_arrival_shelt 1 < 2016 0.0705128 NA 0.0421018 0.0989238
I.consulted_account_latrine IS.REVA_arrival_shelt 1 2016 - Aug 2017 0.2117647 NA 0.1248980 0.2986314
I.consulted_account_latrine IS.REVA_arrival_shelt 1 post Aug 2017 0.1260452 NA 0.1145958 0.1374946
Sig. Relationship Found for IS.disab_coll_waterI.consulted_account_latrine : pval= *0.045
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.consulted_account_latrine IS.disab_coll_water 0 0 0.8793355 NA 0.8684345 0.8902364
I.consulted_account_latrine IS.disab_coll_water 0 1 0.8307692 NA 0.7781347 0.8834037
I.consulted_account_latrine IS.disab_coll_water 1 0 0.1206645 NA 0.1097636 0.1315655
I.consulted_account_latrine IS.disab_coll_water 1 1 0.1692308 NA 0.1165963 0.2218653
Sig. Relationship Found for IS.no_male_18to59_coll_waterI.consulted_account_latrine : pval= *0.012
dependent.var independent.var dependent.var.value independent.var.value numbers se min max
I.consulted_account_latrine IS.no_male_18to59_coll_water 0 0 0.8909817 NA 0.8763860 0.9055774
I.consulted_account_latrine IS.no_male_18to59_coll_water 0 1 0.8633938 NA 0.8478426 0.8789450
I.consulted_account_latrine IS.no_male_18to59_coll_water 1 0 0.1090183 NA 0.0944226 0.1236140
I.consulted_account_latrine IS.no_male_18to59_coll_water 1 1 0.1366062 NA 0.1210550 0.1521574

###Disaggregation by respondent status

results1$message

# Plotting the residuals
corrplot(chisq$residuals, is.cor = FALSE)